//判断大于跟果实的距离
function monFruitsCollision () {
	if(!data.gameover)
	{
		for(var i=0;i<fruit.num;i++)
		{
			if(fruit.alive[i])
			{
				var l=calLength2(fruit.x[i],fruit.y[i],mam.x,mam.y);
				if(l<900)
				{
					fruit.dead(i);
					data.fruitnum++;

					if(fruit.fruitType[i]=="blue")
					{
						data.double=2;
					}
					mam.mamBodyCount++;
					
					mam.mamBodyInterval=0;
					if(mam.manBodyCount>=7)
					{
						mam.mamBodyCount=7;
					}

					wave.born(fruit.x[i],fruit.y[i]);
				}
			}
		}
	}
}
//大鱼跟小鱼距离
function mombabyCollision () {
	if(!data.gameover)
	{
		if(data.fruitnum>0)
		{
			var l=calLength2(mam.x,mam.y,baby.x,baby.y);
			if(l<900)
			{
				baby.babyBodyCount=0;
				
				mam.mamBodyCount=0;
				data.addScore();
				halo.born(baby.x,baby.y);

			}
		}
	}
}